package org.finjic.exception;

/**
 * User: Taras
 * Date: 10.11.12
 * Time: 20:59
 */
public class NoSuchBeanException extends RuntimeException {
    private String beanId;

    public NoSuchBeanException(String beanId) {
        this.beanId = beanId;
    }

    @Override
    public String getMessage() {
        return "There is no such bean in context with id: " + beanId;
    }
}
